﻿using BingoClientModel;
using BingoServerCommon.Common;

namespace BingoGameServerConsole
{
	/// <玩家离开房间 />
	public class PackageLeavaRoom : Package
	{

		public PackageLeavaRoom(EnumPackCommand mainid) : base(mainid)
		{
		}

		public PackageLeavaRoom(byte[] buffer, int len) : base(buffer, len)
		{
		}

		/// <summary>
		/// 
		/// </summary>
		public override void Excute(BaseRoom baseroom, Session session)
		{
            User user = (User)session.player;
            Room room = (Room)baseroom;
            room.LeaveRoom(user);
		}
	}
}
